﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FlowProcessConfigMgt.aspx.cs" Inherits="BEGDC.CC.Web.Workflow.Admin.FlowProcessConfigMgt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="../../css/global.css" type="text/css" rel="stylesheet" />
    <link href="../../css/main.css" type="text/css" rel="stylesheet" />
    <link href="../../css/style.css" type="text/css" rel="stylesheet" />

    <script src="../../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        function showDialog(url) {

            var obj = window.showModalDialog(url, this, 'dialogWidth=800px;dialogHeight=700px;status=0;help=0');
            if (obj == 'reload') {
                //document.Form1.submit();

                window.location.href = window.location.href;
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="mainbox">
        <div class="sitemapbox">
            <div class="sitemap">
                <span class="sitemap_root">&raquo;System Tools &nbsp;&raquo;Process Config</span>
            </div>
        </div>
        <%-- Empty DIV for clearing float. Can be replaced by CSS ":after". --%>
        <div style="clear: left">
        </div>
        <div class="tabbox purplebg_dark">
            <ul class="tabpos">
                <li><span class="tab_active">Process Config 流程配置</span></li></ul>
        </div>
        <div class="tabcontent">
            <div class="formbox padding_lft5 padding_top5">
                <span class=" padding_lft20">
                    <asp:Label ID="lblProcName" runat="server" Text="Process Name 流程名称："></asp:Label>
                    <asp:DropDownList ID="ddlProcessName" runat="server" OnSelectedIndexChanged="ddlProcessName_SelectedIndexChanged" AutoPostBack="true"
                        Width="200px">
                    </asp:DropDownList>
                </span><span class="padding_lft20">
                    <asp:Button ID="btnSearch" runat="server" CssClass="btn" Text="Query (查询)" OnClick="btnSearch_Click" />
                </span>
            </div>
            <div class="formbox  padding_top5">
                <asp:DataGrid ID="dgList" ShowHeader="True" AutoGenerateColumns="False" GridLines="both" runat="server" PageSize="10" AllowPaging="True"
                    PagerStyle-Visible="False" AllowSorting="True" CssClass="tablestyle" OnSortCommand="dgList_SortCommand">
                    <ItemStyle CssClass="tbody trwhitebg" />
                    <AlternatingItemStyle CssClass="tbody trpurplebg" />
                    <HeaderStyle CssClass="thead" />
                    <Columns>
                        <asp:BoundColumn DataField="ProcName" HeaderText="Process Name <br/> 流程名称" ReadOnly="True" SortExpression="ProcName">
                            <ItemStyle Wrap="False" Width="25%" Height="25" HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="Process Step <br/> 流程步骤" SortExpression="ProcessConfigID">
                            <HeaderStyle Width="25%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            <ItemTemplate>
                                <a href="javascript:void(0);" onclick="showDialog('FlowProcessConfigEdit.aspx?ProcessConfigID=<%# Eval("ProcessConfigID") %>&rdm=<%= System.Guid.NewGuid() %>');">
                                    <%# Eval("ActivityDisplayName")%>
                                </a>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="ActivityStampName" HeaderText="Stamp Name <br/> 图章名称" ReadOnly="True" SortExpression="ActivityStampName">
                            <ItemStyle Width="25%" HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="Description" HeaderText="Description<br/>描述" ReadOnly="True" SortExpression="Description">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="Action 操作">
                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Width="80"></ItemStyle>
                            <ItemTemplate>
                                <img src="../../Images/COMEDIT.GIF" alt="Open (打开)" title="Open (打开)" onclick="showDialog('FlowProcessConfigEdit.aspx?ProcessConfigID=<%# Eval("ProcessConfigID") %>&rdm=<%= System.Guid.NewGuid() %>');"
                                    onmouseover="this.style.cursor='hand'" />
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                    <PagerStyle Font-Size="11pt" HorizontalAlign="Center" BackColor="#eeeeee" CssClass="paging" Visible="False" Mode="NumericPages">
                    </PagerStyle>
                </asp:DataGrid>
                <div class="padding_lft5 padding_top5">
                    <table cellspacing="0" cellpadding="0" width="98%">
                        <tbody>
                            <tr>
                                <td valign="middle">
                                    Total Records: <span>
                                        <asp:Label ID="lblRecordCount" runat="server"></asp:Label>
                                    </span>&nbsp;&nbsp;&nbsp;
                                    <img src="../../images/book_open.gif" alt="PageIcon" />&nbsp;Page: <span>
                                        <asp:Label ID="lblCurrentPageIndex" runat="server"></asp:Label>&nbsp;/&nbsp;
                                        <asp:Label ID="lblPageCount" runat="server"></asp:Label></span>
                                </td>
                                <td class="txt_align_rgt">
                                    <asp:ImageButton ID="btnPageFirst" runat="server" ImageUrl="../../images/pg_first_inact.gif" ImageAlign="AbsMiddle" OnClick="btnPageFirst_Click">
                                    </asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="btnPagePrev" runat="server" ImageUrl="../../images/pg_pre_inact.gif" ImageAlign="AbsMiddle" OnClick="btnPagePrev_Click">
                                    </asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="btnPageNext" runat="server" ImageUrl="../../images/pg_next.gif" ImageAlign="absmiddle" OnClick="btnPageNext_Click">
                                    </asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="btnPageLast" runat="server" ImageUrl="../../images/pg_last.gif" ImageAlign="absmiddle" OnClick="btnPageLast_Click">
                                    </asp:ImageButton>&nbsp; Go To Page:
                                    <asp:TextBox ID="txtPage" runat="server" onmouseover="this.className='txtboxover width40';" onmouseout="this.className='txtbox width40';"
                                        CssClass="txtbox width40"></asp:TextBox>
                                    <asp:ImageButton ID="btnGotoPage" runat="server" ImageUrl="../../images/book_open.gif" OnClick="btnGotoPage_Click"></asp:ImageButton>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    </form>

    <script type="text/javascript">

        $(document).ready(function() {
            $('.trwhitebg').mouseover(function() {
                $(this).removeClass('trwhitebg');
                $(this).addClass('trhover');
            }).mouseout(function() {
                $(this).removeClass('trhover');
                $(this).addClass('trwhitebg')
            })
            $('.trpurplebg').mouseover(function() {
                $(this).removeClass('trpurplebg');
                $(this).addClass('trhover');
            }).mouseout(function() {
                $(this).removeClass('trhover');
                $(this).addClass('trpurplebg');
            })
        });
    </script>

</body>
</html>